package com.aiit.carinsurance2.dao;

import com.aiit.carinsurance2.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ToubaodanDao {
    List<Insured> querybuid(Integer uid);

    List<Car> querycarid(Integer uid);


    List<Userinsurancepay> queryallpay(Integer uid);

    int inserts(Toubaodan toubaodan);

    List<Toubaodan> query(String states);

    List<Toubaodaninfo> queryinfo(String states);

    Toubaodan querybyid(String id);

    int update(Toubaodan toubaodan);

    Toubaodaninfo querytoubaodaninfo(@Param("uid") int id);

    int updateinfo(String states, String bec, int id);

    Toubaodaninfo queryinfobyuid(Integer uid);

    Toubaodan querybyuid(Integer uid);
}
